-- GENERATED SPELL FOR [Chilltusk] --


function spell0_27005(pUnit, Event) --@Ice Slash,n/a--
pUnit:FullCastSpellOnTarget(51878,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27005', 10283, 1)
end

function spell1_27005(pUnit, Event) --@Tusk Strike,n/a--
pUnit:FullCastSpellOnTarget(50410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27005', 617, 1)
end

function Sorts_27005(pUnit, Event)
local choix_sorts_27005 = math.random(0, 1)
if choix_sorts_27005 == 0 then
pUnit:RegisterEvent('spell0_27005', 1, 1)
end
if choix_sorts_27005 == 1 then
pUnit:RegisterEvent('spell1_27005', 1, 1)
end
end

function mob27005_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27005', math.random(1500, 3000), 1)
end

function mob27005_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27005_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27005_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27005, 1, 'mob27005_Action')
RegisterUnitEvent(27005, 2, 'mob27005_Leave')
RegisterUnitEvent(27005, 3, 'mob27005_Kill')
RegisterUnitEvent(27005, 4, 'mob27005_Die')
